package com.lhnstart.learn.bases.polyarr;

/**
 * 老师类
 *
 * @author lhn
 * @date 2023/06/07 16:25
 * @since 1.0.0
 **/
public class Teacher extends Person{

    private double salary;

    public Teacher(String name, int age, double salary) {
        super(name, age);
        this.salary = salary;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public String say() {
        return super.say() + " salary:" + salary;
    }
}